
package usyd.comp5348;

import javax.ejb.Remote;


/**
 * This is the business interface for DeliveryFacade enterprise bean.
 */
@Remote
public interface DeliveryFacadeRemote {
    int createDelivery(Delivery delivery);

    void modifyDelivery(Delivery delivery)throws DeliveryException;

    void deleteDelivery(int id);

    void submitDelivery(int id) throws DeliveryException ;

    Delivery getDeliveryById(int id);
    
    // TODO: Fix this - I don't know why this is done like this
    void submitDelivery(Delivery d, Order order) throws DeliveryException;
    
}
